package com.zjuee.service.basic.message.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author wu liang
 * @since 1.0
 */
@Data
public class NotificationVo implements Serializable {
    private static final long serialVersionUID = 1L;

    /*手机号码*/
    @NotBlank(message = "mobile can't be empty")
    @Pattern(regexp = "^((13[0-9])|(15[^4,\\D])|(18[0-9])|(14[5,7])|(17[0,1,3,5-8]))\\d{8}$", message = "invalid mobile")
    private String mobile;

    /*发送内容*/
    @NotBlank(message = "content can't be empty")
    private String content;

    /*发送模板*/
    @NotBlank(message = "templateId can't be empty")
    @Pattern(regexp = "^-?[0-9]+$", message = "invalid templateId")
    private String templateId;

    /*密钥*/
    private String accesskey;

    /**/
    private String secret;

    /**/
    private String sign;

    /*验证值*/
    private String srcNo;

}
